<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Class NcFlagUtil | HiAPI-C# 2025 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Class NcFlagUtil | HiAPI-C# 2025 ">
      
      <meta name="description" content="Utility class for working with NC flags and their lifecycle modes.">
      <link rel="icon" href="../img/HiAPI.favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
      <meta name="loc:inThisArticle" content="In this article">
      <meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
      <meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
      <meta name="loc:tocFilter" content="Filter by title">
      <meta name="loc:nextArticle" content="Next">
      <meta name="loc:prevArticle" content="Previous">
      <meta name="loc:themeLight" content="Light">
      <meta name="loc:themeDark" content="Dark">
      <meta name="loc:themeAuto" content="Auto">
      <meta name="loc:changeTheme" content="Change theme">
      <meta name="loc:copy" content="Copy">
      <meta name="loc:downloadPdf" content="Download PDF">

      <script type="module" src="./../public/docfx.min.js"></script>

      <script>
        const theme = localStorage.getItem('theme') || 'auto'
        document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
      </script>

  </head>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
            
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Hi.Numerical.NcFlagUtil">



  <h1 id="Hi_Numerical_NcFlagUtil" data-uid="Hi.Numerical.NcFlagUtil" class="text-break">
Class NcFlagUtil  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.Numerical.html">Numerical</a></dd></dl>
  <dl><dt>Assembly</dt><dd>HiUniNc.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>Utility class for working with NC flags and their lifecycle modes.</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class NcFlagUtil</code></pre>
  </div>




  <dl class="typelist inheritance">
    <dt>Inheritance</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
      <div><span class="xref">NcFlagUtil</span></div>
    </dd>
  </dl>



  <dl class="typelist inheritedMembers">
    <dt>Inherited Members</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
    </div>
  </dd></dl>






  <h2 class="section" id="methods">Methods
</h2>


  <a id="Hi_Numerical_NcFlagUtil_GetCompensationHeight_" data-uid="Hi.Numerical.NcFlagUtil.GetCompensationHeight*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetCompensationHeight_System_Collections_BitArray_System_Int32_Hi_Numerical_MillingToolOffsetTable_Hi_Numerical_CncBrand_Hi_Common_Messages_IMessageHost_" data-uid="Hi.Numerical.NcFlagUtil.GetCompensationHeight(System.Collections.BitArray,System.Int32,Hi.Numerical.MillingToolOffsetTable,Hi.Numerical.CncBrand,Hi.Common.Messages.IMessageHost)">
  GetCompensationHeight(BitArray, int, MillingToolOffsetTable, CncBrand, IMessageHost)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the tool height compensation value based on the NC flags and CNC brand.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double GetCompensationHeight(this BitArray ncFlagBitArray, int H, MillingToolOffsetTable millingToolOffsetTable, CncBrand cncBrand, IMessageHost messageHost)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>NC flag bit array</p>
</dd>
    <dt><code>H</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Height offset index</p>
</dd>
    <dt><code>millingToolOffsetTable</code> <a class="xref" href="Hi.Numerical.MillingToolOffsetTable.html">MillingToolOffsetTable</a></dt>
    <dd><p>Tool offset table</p>
</dd>
    <dt><code>cncBrand</code> <a class="xref" href="Hi.Numerical.CncBrand.html">CncBrand</a></dt>
    <dd><p>CNC brand</p>
</dd>
    <dt><code>messageHost</code> <a class="xref" href="Hi.Common.Messages.IMessageHost.html">IMessageHost</a></dt>
    <dd><p>Message host for warnings</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Height compensation value</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetCompensationRadius_" data-uid="Hi.Numerical.NcFlagUtil.GetCompensationRadius*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetCompensationRadius_System_Collections_BitArray_System_Int32_Hi_Numerical_MillingToolOffsetTable_Hi_Numerical_CncBrand_Hi_Common_Messages_IMessageHost_" data-uid="Hi.Numerical.NcFlagUtil.GetCompensationRadius(System.Collections.BitArray,System.Int32,Hi.Numerical.MillingToolOffsetTable,Hi.Numerical.CncBrand,Hi.Common.Messages.IMessageHost)">
  GetCompensationRadius(BitArray, int, MillingToolOffsetTable, CncBrand, IMessageHost)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the tool radius compensation value from the flag bit array and tool offset table.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double GetCompensationRadius(this BitArray ncFlagBitArray, int D, MillingToolOffsetTable millingToolOffsetTable, CncBrand cncBrand, IMessageHost messageHost)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
    <dt><code>D</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The tool diameter offset number.</p>
</dd>
    <dt><code>millingToolOffsetTable</code> <a class="xref" href="Hi.Numerical.MillingToolOffsetTable.html">MillingToolOffsetTable</a></dt>
    <dd><p>The milling tool offset table.</p>
</dd>
    <dt><code>cncBrand</code> <a class="xref" href="Hi.Numerical.CncBrand.html">CncBrand</a></dt>
    <dd><p>The CNC controller brand.</p>
</dd>
    <dt><code>messageHost</code> <a class="xref" href="Hi.Common.Messages.IMessageHost.html">IMessageHost</a></dt>
    <dd><p>The message host for reporting warnings or errors.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The compensation radius value.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetCoordinateOffset_" data-uid="Hi.Numerical.NcFlagUtil.GetCoordinateOffset*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetCoordinateOffset_System_Boolean_System_Int32_System_Int32_Hi_Numerical_NcArgs_HeidenhainCycleDef7Arg_Hi_Numerical_NcEnv_" data-uid="Hi.Numerical.NcFlagUtil.GetCoordinateOffset(System.Boolean,System.Int32,System.Int32,Hi.Numerical.NcArgs.HeidenhainCycleDef7Arg,Hi.Numerical.NcEnv)">
  GetCoordinateOffset(bool, int, int, HeidenhainCycleDef7Arg, NcEnv)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the coordinate offset based on the CNC controller and coordinate settings.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d GetCoordinateOffset(bool hasSiemensG500, int isoCoordinateId, int heidenhainCycleDef247Q339, HeidenhainCycleDef7Arg heidenhainCycleDef7Arg, NcEnv ncEnv)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>hasSiemensG500</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Whether Siemens G500 is active.</p>
</dd>
    <dt><code>isoCoordinateId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The ISO coordinate ID.</p>
</dd>
    <dt><code>heidenhainCycleDef247Q339</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The Heidenhain cycle def 247 Q339 value.</p>
</dd>
    <dt><code>heidenhainCycleDef7Arg</code> <a class="xref" href="Hi.Numerical.NcArgs.HeidenhainCycleDef7Arg.html">HeidenhainCycleDef7Arg</a></dt>
    <dd><p>The Heidenhain cycle def 7 arguments.</p>
</dd>
    <dt><code>ncEnv</code> <a class="xref" href="Hi.Numerical.NcEnv.html">NcEnv</a></dt>
    <dd><p>The NC environment.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The coordinate offset vector.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetFlags_" data-uid="Hi.Numerical.NcFlagUtil.GetFlags*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetFlags_Hi_Numerical_NcLifeCycleMode_" data-uid="Hi.Numerical.NcFlagUtil.GetFlags(Hi.Numerical.NcLifeCycleMode)">
  GetFlags(NcLifeCycleMode)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets all NC flags for a specific lifecycle mode.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static NcFlag[] GetFlags(this NcLifeCycleMode ncLifeCycleMode)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncLifeCycleMode</code> <a class="xref" href="Hi.Numerical.NcLifeCycleMode.html">NcLifeCycleMode</a></dt>
    <dd><p>The lifecycle mode to get flags for.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a>[]</dt>
    <dd><p>An array of NC flags for the specified lifecycle mode.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetHeidenhainCoordinateOffset_" data-uid="Hi.Numerical.NcFlagUtil.GetHeidenhainCoordinateOffset*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetHeidenhainCoordinateOffset_System_Int32_Hi_Numerical_NcArgs_HeidenhainCycleDef7Arg_Hi_Numerical_NcEnv_" data-uid="Hi.Numerical.NcFlagUtil.GetHeidenhainCoordinateOffset(System.Int32,Hi.Numerical.NcArgs.HeidenhainCycleDef7Arg,Hi.Numerical.NcEnv)">
  GetHeidenhainCoordinateOffset(int, HeidenhainCycleDef7Arg, NcEnv)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the coordinate offset for Heidenhain controllers.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d GetHeidenhainCoordinateOffset(int heidenhainCycleDef247Q339, HeidenhainCycleDef7Arg heidenhainCycleDef7Arg, NcEnv ncEnv)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>heidenhainCycleDef247Q339</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The preset number for CYCL DEF 247.</p>
</dd>
    <dt><code>heidenhainCycleDef7Arg</code> <a class="xref" href="Hi.Numerical.NcArgs.HeidenhainCycleDef7Arg.html">HeidenhainCycleDef7Arg</a></dt>
    <dd><p>The argument for CYCL DEF 7.</p>
</dd>
    <dt><code>ncEnv</code> <a class="xref" href="Hi.Numerical.NcEnv.html">NcEnv</a></dt>
    <dd><p>The NC environment.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The calculated coordinate offset.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetModalNcFlag_" data-uid="Hi.Numerical.NcFlagUtil.GetModalNcFlag*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetModalNcFlag__1_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.GetModalNcFlag``1(System.Collections.BitArray)">
  GetModalNcFlag&lt;T&gt;(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the modal NC flag of the specified type from the bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T GetModalNcFlag&lt;T&gt;(this BitArray ncFlagBitArray) where T : Enum</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><span class="xref">T</span></dt>
    <dd><p>The modal NC flag of the specified type.</p>
</dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>T</code></dt>
    <dd><p>The enum type of the modal flag.</p>
</dd>
  </dl>










  <a id="Hi_Numerical_NcFlagUtil_GetNcFlag_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFlag*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcFlag__1_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFlag``1(System.Collections.BitArray)">
  GetNcFlag&lt;T&gt;(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the NC flag of the specified type from the bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T GetNcFlag&lt;T&gt;(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><span class="xref">T</span></dt>
    <dd><p>The NC flag of the specified type.</p>
</dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>T</code></dt>
    <dd><p>The enum type of the NC flag.</p>
</dd>
  </dl>










  <a id="Hi_Numerical_NcFlagUtil_GetNcFlags_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFlags*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcFlags_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFlags(System.Collections.BitArray)">
  GetNcFlags(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets all active NC flags from the bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;NcFlag&gt; GetNcFlags(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a>&gt;</dt>
    <dd><p>An enumerable collection of active NC flags.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetNcFromSyntex_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFromSyntex*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcFromSyntex__1_Hi_Numerical_NcGroup03___0___0_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFromSyntex``1(Hi.Numerical.NcGroup03,``0,``0)">
  GetNcFromSyntex&lt;TVec&gt;(NcGroup03, TVec, TVec)
  
  </h3>

  <div class="markdown level1 summary"><p>Converts syntactic coordinates to NC coordinates based on the positioning mode.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TVec GetNcFromSyntex&lt;TVec&gt;(this NcGroup03 group03Flag, TVec syntexPosition, TVec preProgramPosition) where TVec : IVec&lt;double&gt;, new()</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>group03Flag</code> <a class="xref" href="Hi.Numerical.NcGroup03.html">NcGroup03</a></dt>
    <dd><p>The positioning mode flag</p>
</dd>
    <dt><code>syntexPosition</code> <span class="xref">TVec</span></dt>
    <dd><p>Syntactic position from the input</p>
</dd>
    <dt><code>preProgramPosition</code> <span class="xref">TVec</span></dt>
    <dd><p>Previous program position</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><span class="xref">TVec</span></dt>
    <dd><p>Converted NC coordinates</p>
</dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>TVec</code></dt>
    <dd><p>Vector type implementing IVec interface</p>
</dd>
  </dl>










  <a id="Hi_Numerical_NcFlagUtil_GetNcFromSyntex_" data-uid="Hi.Numerical.NcFlagUtil.GetNcFromSyntex*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcFromSyntex__1_Hi_Numerical_NcGroup03___0___0_System_Int32_System_Func_System_Int32___0_System_Double__System_Action_System_Int32___0_System_Double__" data-uid="Hi.Numerical.NcFlagUtil.GetNcFromSyntex``1(Hi.Numerical.NcGroup03,``0,``0,System.Int32,System.Func{System.Int32,``0,System.Double},System.Action{System.Int32,``0,System.Double})">
  GetNcFromSyntex&lt;TVec&gt;(NcGroup03, TVec, TVec, int, Func&lt;int, TVec, double&gt;, Action&lt;int, TVec, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Converts syntactic position to NC position based on the positioning mode (absolute or incremental).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TVec GetNcFromSyntex&lt;TVec&gt;(this NcGroup03 group03Flag, TVec syntexPosition, TVec preProgramPosition, int vecSize, Func&lt;int, TVec, double&gt; getter, Action&lt;int, TVec, double&gt; setter) where TVec : new()</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>group03Flag</code> <a class="xref" href="Hi.Numerical.NcGroup03.html">NcGroup03</a></dt>
    <dd><p>The positioning mode flag</p>
</dd>
    <dt><code>syntexPosition</code> <span class="xref">TVec</span></dt>
    <dd><p>Syntactic position from the input</p>
</dd>
    <dt><code>preProgramPosition</code> <span class="xref">TVec</span></dt>
    <dd><p>Previous program position</p>
</dd>
    <dt><code>vecSize</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Size of the vector</p>
</dd>
    <dt><code>getter</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, TVec, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function to get value at specified index</p>
</dd>
    <dt><code>setter</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-3">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, TVec, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function to set value at specified index</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><span class="xref">TVec</span></dt>
    <dd><p>Converted NC coordinates</p>
</dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>TVec</code></dt>
    <dd><p>Vector type</p>
</dd>
  </dl>







  <h4 class="section">Exceptions</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Common.InternalException.html">InternalException</a></dt>
    <dd><p>Thrown when group03Flag is not managed</p>
</dd>
  </dl>



  <a id="Hi_Numerical_NcFlagUtil_GetNcGroupType_" data-uid="Hi.Numerical.NcFlagUtil.GetNcGroupType*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcGroupType_Hi_Numerical_NcFlag_" data-uid="Hi.Numerical.NcFlagUtil.GetNcGroupType(Hi.Numerical.NcFlag)">
  GetNcGroupType(NcFlag)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the NC group type for the specified NC flag.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Type GetNcGroupType(NcFlag ncFlag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlag</code> <a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a></dt>
    <dd><p>The NC flag to get the group type for.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></dt>
    <dd><p>The NC group type or null if not found.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetNcLifeCycleMode_" data-uid="Hi.Numerical.NcFlagUtil.GetNcLifeCycleMode*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcLifeCycleMode_Hi_Numerical_NcFlag_" data-uid="Hi.Numerical.NcFlagUtil.GetNcLifeCycleMode(Hi.Numerical.NcFlag)">
  GetNcLifeCycleMode(NcFlag)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the lifecycle mode of the specified NC flag.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static NcLifeCycleMode GetNcLifeCycleMode(this NcFlag flag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>flag</code> <a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a></dt>
    <dd><p>The NC flag to check.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Numerical.NcLifeCycleMode.html">NcLifeCycleMode</a></dt>
    <dd><p>The lifecycle mode of the flag.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetNcName_" data-uid="Hi.Numerical.NcFlagUtil.GetNcName*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcName_Hi_Numerical_NcFlag_" data-uid="Hi.Numerical.NcFlagUtil.GetNcName(Hi.Numerical.NcFlag)">
  GetNcName(NcFlag)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the display name of an NC flag.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetNcName(this NcFlag flag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>flag</code> <a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a></dt>
    <dd><p>The NC flag to get the name of.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>The display name of the NC flag.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetNcXyzFromSyntex_" data-uid="Hi.Numerical.NcFlagUtil.GetNcXyzFromSyntex*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcXyzFromSyntex_Hi_Numerical_NcGroup03_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Numerical.NcFlagUtil.GetNcXyzFromSyntex(Hi.Numerical.NcGroup03,Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  GetNcXyzFromSyntex(NcGroup03, Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Converts syntactic XYZ coordinates to NC XYZ coordinates based on the positioning mode.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d GetNcXyzFromSyntex(this NcGroup03 group03Flag, Vec3d syntexXyz, Vec3d preNcXyz)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>group03Flag</code> <a class="xref" href="Hi.Numerical.NcGroup03.html">NcGroup03</a></dt>
    <dd><p>The Group03 flag specifying the positioning mode.</p>
</dd>
    <dt><code>syntexXyz</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The syntactic XYZ coordinates to convert.</p>
</dd>
    <dt><code>preNcXyz</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The previous NC XYZ coordinates, used for incremental positioning.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The converted NC XYZ coordinates.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetNcXyzabcFromSyntex_" data-uid="Hi.Numerical.NcFlagUtil.GetNcXyzabcFromSyntex*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetNcXyzabcFromSyntex_Hi_Numerical_NcGroup03_Hi_Geom_DVec3d_Hi_Geom_DVec3d_" data-uid="Hi.Numerical.NcFlagUtil.GetNcXyzabcFromSyntex(Hi.Numerical.NcGroup03,Hi.Geom.DVec3d,Hi.Geom.DVec3d)">
  GetNcXyzabcFromSyntex(NcGroup03, DVec3d, DVec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets NC XYZABC coordinates from syntactic coordinates based on the positioning mode.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DVec3d GetNcXyzabcFromSyntex(this NcGroup03 group03Flag, DVec3d syntexXyzabc, DVec3d preNcXyzabc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>group03Flag</code> <a class="xref" href="Hi.Numerical.NcGroup03.html">NcGroup03</a></dt>
    <dd><p>The positioning mode flag (G90 or G91).</p>
</dd>
    <dt><code>syntexXyzabc</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
    <dd><p>The syntactic XYZABC coordinates.</p>
</dd>
    <dt><code>preNcXyzabc</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
    <dd><p>The previous NC XYZABC coordinates.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
    <dd><p>The calculated NC XYZABC coordinates.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetPlaneDir_" data-uid="Hi.Numerical.NcFlagUtil.GetPlaneDir*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetPlaneDir_Hi_Numerical_NcGroup02_" data-uid="Hi.Numerical.NcFlagUtil.GetPlaneDir(Hi.Numerical.NcGroup02)">
  GetPlaneDir(NcGroup02)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the direction index of the selected plane.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int GetPlaneDir(this NcGroup02 ncFlag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlag</code> <a class="xref" href="Hi.Numerical.NcGroup02.html">NcGroup02</a></dt>
    <dd><p>The NC plane selection flag (G17, G18, or G19).</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The direction index (0=X, 1=Y, 2=Z).</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetPlaneNormal_" data-uid="Hi.Numerical.NcFlagUtil.GetPlaneNormal*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetPlaneNormal_Hi_Numerical_NcGroup02_" data-uid="Hi.Numerical.NcFlagUtil.GetPlaneNormal(Hi.Numerical.NcGroup02)">
  GetPlaneNormal(NcGroup02)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the normal vector of the selected plane.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d GetPlaneNormal(this NcGroup02 ncFlag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlag</code> <a class="xref" href="Hi.Numerical.NcGroup02.html">NcGroup02</a></dt>
    <dd><p>The NC plane selection flag (G17, G18, or G19).</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The normal vector of the plane.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetTiltMat4d_" data-uid="Hi.Numerical.NcFlagUtil.GetTiltMat4d*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetTiltMat4d_System_Collections_BitArray_Hi_Numerical_NcArgs_ITiltPlaneNcArg_Hi_Numerical_NcGroup02_Hi_Numerical_Xyzabc_ICoordinateConverter_System_Nullable_System_Boolean___" data-uid="Hi.Numerical.NcFlagUtil.GetTiltMat4d(System.Collections.BitArray,Hi.Numerical.NcArgs.ITiltPlaneNcArg,Hi.Numerical.NcGroup02,Hi.Numerical.Xyzabc.ICoordinateConverter,System.Nullable{System.Boolean}@)">
  GetTiltMat4d(BitArray, ITiltPlaneNcArg, NcGroup02, ICoordinateConverter, out bool?)
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Mat4d GetTiltMat4d(this BitArray ncFlagBitArray, ITiltPlaneNcArg ncArgGroup16, NcGroup02 ncGroup02flagForG68, ICoordinateConverter coordinateConverterForG68p2, out bool? isG68p2Successed)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
    <dt><code>ncArgGroup16</code> <a class="xref" href="Hi.Numerical.NcArgs.ITiltPlaneNcArg.html">ITiltPlaneNcArg</a></dt>
    <dd></dd>
    <dt><code>ncGroup02flagForG68</code> <a class="xref" href="Hi.Numerical.NcGroup02.html">NcGroup02</a></dt>
    <dd></dd>
    <dt><code>coordinateConverterForG68p2</code> <a class="xref" href="Hi.Numerical.Xyzabc.ICoordinateConverter.html">ICoordinateConverter</a></dt>
    <dd></dd>
    <dt><code>isG68p2Successed</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_GetValue_" data-uid="Hi.Numerical.NcFlagUtil.GetValue*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_GetValue_Hi_Numerical_NcGroup03_System_Double_System_Double_" data-uid="Hi.Numerical.NcFlagUtil.GetValue(Hi.Numerical.NcGroup03,System.Double,System.Double)">
  GetValue(NcGroup03, double, double)
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double GetValue(this NcGroup03 group03Flag, double v, double preV)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>group03Flag</code> <a class="xref" href="Hi.Numerical.NcGroup03.html">NcGroup03</a></dt>
    <dd></dd>
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value</p>
</dd>
    <dt><code>preV</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>previous value</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_HasModalFlag_" data-uid="Hi.Numerical.NcFlagUtil.HasModalFlag*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_HasModalFlag__1_System_Collections_BitArray___0__" data-uid="Hi.Numerical.NcFlagUtil.HasModalFlag``1(System.Collections.BitArray,``0@)">
  HasModalFlag&lt;T&gt;(BitArray, out T)
  
  </h3>

  <div class="markdown level1 summary"><p>Checks if the bit array has a modal flag of the specified type and retrieves it.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool HasModalFlag&lt;T&gt;(this BitArray ncFlagBitArray, out T dst) where T : Enum</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
    <dt><code>dst</code> <span class="xref">T</span></dt>
    <dd><p>When this method returns, contains the modal flag if found; otherwise, the default value.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if a modal flag was found; otherwise, false.</p>
</dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>T</code></dt>
    <dd><p>The enum type of the modal flag.</p>
</dd>
  </dl>










  <a id="Hi_Numerical_NcFlagUtil_IsAbsolutePositioning_" data-uid="Hi.Numerical.NcFlagUtil.IsAbsolutePositioning*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsAbsolutePositioning_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsAbsolutePositioning(System.Collections.BitArray)">
  IsAbsolutePositioning(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Checks if the positioning mode is absolute (G90) rather than incremental (G91).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsAbsolutePositioning(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if absolute positioning is active; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsFlagActivated_" data-uid="Hi.Numerical.NcFlagUtil.IsFlagActivated*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsFlagActivated_System_Collections_BitArray_Hi_Numerical_NcFlag_" data-uid="Hi.Numerical.NcFlagUtil.IsFlagActivated(System.Collections.BitArray,Hi.Numerical.NcFlag)">
  IsFlagActivated(BitArray, NcFlag)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether a specific NC flag is activated in the flag bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsFlagActivated(this BitArray ncFlagBitArray, NcFlag ncFlag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
    <dt><code>ncFlag</code> <a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a></dt>
    <dd><p>The NC flag to check.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if the flag is activated; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsHeightCompensationEnabled_" data-uid="Hi.Numerical.NcFlagUtil.IsHeightCompensationEnabled*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsHeightCompensationEnabled_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsHeightCompensationEnabled(System.Collections.BitArray)">
  IsHeightCompensationEnabled(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether height compensation is enabled.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsHeightCompensationEnabled(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if height compensation is enabled; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsMacro_" data-uid="Hi.Numerical.NcFlagUtil.IsMacro*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsMacro_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsMacro(System.Collections.BitArray)">
  IsMacro(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Is macro such as drilling cycle, rapid home, tool center alignment.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsMacro(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Is macro mode</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsOnArcCommand_" data-uid="Hi.Numerical.NcFlagUtil.IsOnArcCommand*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsOnArcCommand_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsOnArcCommand(System.Collections.BitArray)">
  IsOnArcCommand(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether an arc command is active.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsOnArcCommand(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if an arc command is active; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsOnSimpleMachiningMode_" data-uid="Hi.Numerical.NcFlagUtil.IsOnSimpleMachiningMode*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsOnSimpleMachiningMode_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsOnSimpleMachiningMode(System.Collections.BitArray)">
  IsOnSimpleMachiningMode(BitArray)
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsOnSimpleMachiningMode(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsRadiusCompensationEnabled_" data-uid="Hi.Numerical.NcFlagUtil.IsRadiusCompensationEnabled*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsRadiusCompensationEnabled_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsRadiusCompensationEnabled(System.Collections.BitArray)">
  IsRadiusCompensationEnabled(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether radius compensation is enabled.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsRadiusCompensationEnabled(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if radius compensation is enabled; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsRadiusOrHeightCompensationEnabled_" data-uid="Hi.Numerical.NcFlagUtil.IsRadiusOrHeightCompensationEnabled*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsRadiusOrHeightCompensationEnabled_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsRadiusOrHeightCompensationEnabled(System.Collections.BitArray)">
  IsRadiusOrHeightCompensationEnabled(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether radius or height compensation is enabled.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsRadiusOrHeightCompensationEnabled(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if radius or height compensation is enabled; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsRapid_" data-uid="Hi.Numerical.NcFlagUtil.IsRapid*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsRapid_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsRapid(System.Collections.BitArray)">
  IsRapid(BitArray)
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsRapid(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsToolCenterPointManagementEnabled_" data-uid="Hi.Numerical.NcFlagUtil.IsToolCenterPointManagementEnabled*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsToolCenterPointManagementEnabled_Hi_Numerical_NcGroup08_" data-uid="Hi.Numerical.NcFlagUtil.IsToolCenterPointManagementEnabled(Hi.Numerical.NcGroup08)">
  IsToolCenterPointManagementEnabled(NcGroup08)
  
  </h3>

  <div class="markdown level1 summary"><p>obosoleted. use BitArray version instead.
Is the flag enabled RTCP (Rotational Tool Center Point) (=Tool Center Point Management, TCPM).
Check for <a class="xref" href="Hi.Numerical.NcGroup08.html">NcGroup08</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsToolCenterPointManagementEnabled(this NcGroup08 flag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>flag</code> <a class="xref" href="Hi.Numerical.NcGroup08.html">NcGroup08</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsToolCenterPointManagementEnabled_" data-uid="Hi.Numerical.NcFlagUtil.IsToolCenterPointManagementEnabled*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsToolCenterPointManagementEnabled_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsToolCenterPointManagementEnabled(System.Collections.BitArray)">
  IsToolCenterPointManagementEnabled(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Is the flag enabled RTCP (Rotational Tool Center Point) (=Tool Center Point Management, TCPM).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsToolCenterPointManagementEnabled(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsToolChanging_" data-uid="Hi.Numerical.NcFlagUtil.IsToolChanging*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsToolChanging_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsToolChanging(System.Collections.BitArray)">
  IsToolChanging(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines if a tool change operation is active in the NC flag bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsToolChanging(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if a tool change is active; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_IsToolNormalTiltable_" data-uid="Hi.Numerical.NcFlagUtil.IsToolNormalTiltable*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_IsToolNormalTiltable_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.IsToolNormalTiltable(System.Collections.BitArray)">
  IsToolNormalTiltable(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether the tool normal is tiltable based on the flag bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsToolNormalTiltable(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if the tool normal is tiltable; otherwise, false.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_ModalExclusiveAssign_" data-uid="Hi.Numerical.NcFlagUtil.ModalExclusiveAssign*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_ModalExclusiveAssign_System_Collections_BitArray_Hi_Numerical_NcFlag_" data-uid="Hi.Numerical.NcFlagUtil.ModalExclusiveAssign(System.Collections.BitArray,Hi.Numerical.NcFlag)">
  ModalExclusiveAssign(BitArray, NcFlag)
  
  </h3>

  <div class="markdown level1 summary"><p>Modal exclusive assign in the belonging NC Group.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static BitArray ModalExclusiveAssign(this BitArray ncFlagBitArray, NcFlag assigningNcFlag)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
    <dt><code>assigningNcFlag</code> <a class="xref" href="Hi.Numerical.NcFlag.html">NcFlag</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_ModalExclusiveAssign_" data-uid="Hi.Numerical.NcFlagUtil.ModalExclusiveAssign*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_ModalExclusiveAssign__1_System_Collections_BitArray___0_" data-uid="Hi.Numerical.NcFlagUtil.ModalExclusiveAssign``1(System.Collections.BitArray,``0)">
  ModalExclusiveAssign&lt;T&gt;(BitArray, T)
  
  </h3>

  <div class="markdown level1 summary"><p>Modal exclusive assign in the belonging NC Group.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static BitArray ModalExclusiveAssign&lt;T&gt;(this BitArray ncFlagBitArray, T assigningNcGroupFlag) where T : struct, Enum</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
    <dt><code>assigningNcGroupFlag</code> <span class="xref">T</span></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Type Parameters</h4>
  <dl class="parameters">
    <dt><code>T</code></dt>
    <dd></dd>
  </dl>










  <a id="Hi_Numerical_NcFlagUtil_ResetOneShotFlag_" data-uid="Hi.Numerical.NcFlagUtil.ResetOneShotFlag*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_ResetOneShotFlag_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.ResetOneShotFlag(System.Collections.BitArray)">
  ResetOneShotFlag(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Resets all one-shot flags in the specified bit array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static BitArray ResetOneShotFlag(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The modified bit array with one-shot flags reset.</p>
</dd>
  </dl>











  <a id="Hi_Numerical_NcFlagUtil_ToNcFlagString_" data-uid="Hi.Numerical.NcFlagUtil.ToNcFlagString*"></a>

  <h3 id="Hi_Numerical_NcFlagUtil_ToNcFlagString_System_Collections_BitArray_" data-uid="Hi.Numerical.NcFlagUtil.ToNcFlagString(System.Collections.BitArray)">
  ToNcFlagString(BitArray)
  
  </h3>

  <div class="markdown level1 summary"><p>Converts the active NC flags in the bit array to a string representation.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToNcFlagString(this BitArray ncFlagBitArray)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>ncFlagBitArray</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.bitarray">BitArray</a></dt>
    <dd><p>The bit array of NC flags.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>A string representation of the active NC flags.</p>
</dd>
  </dl>












</article>

        <div class="contribution d-print-none">
        </div>


      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top text-secondary">
      <div class="container-xxl">
        <div class="flex-fill">
          <span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
        </div>
      </div>
    </footer>
  </body>
</html>
